<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="Public/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="Public/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="Public/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="Public/Admin/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	    
	</head>
	<body>
		<p class="btn btn-primary btn-block" style="text-align: left;"><a href="{{U('Brand/index')}}">首页&gt;</a><a href=""></a></p>
		<table class="table table-hover">

			<form class="add" action="" method="post">	
			<tr>
				
				<td  width="80">
					修改货品
				</td>
				
					{{foreach from="$arr" value="$v"}}
						{{if value="$v[0]['natype']==1"}}
						<td>
							<select name="glvalue[]" class="form-control">
								<option value="">
									请选择{{$v[0]['naname']}}
								</option>
								{{foreach from="$v" value="$b"}}
								{{$glvalue=$oldData["glvalue"]}}
<option value="{{$b['sid']}}" {{if value='in_array($b["sid"],$glvalue)'}} selected {{endif}}>{{$b['shopvalue']}}</option>
								{{endforeach}}
							</select>
						</td>
						{{endif}}
					{{endforeach}}
					<td>
						<input id="exampleInputEmail1" class="form-control" type="text"name="gltotal" value="{{$oldData['gltotal']}}">
					</td>
					<td>
						<input type="hidden" name="glid" value="{{$oldData['glid']}}" />
						<input type="hidden" name="goods_gid" value="{{$oldData['goods_gid']}}"/>
						<input id="exampleInputEmail1" class="form-control" type="text"name="glnum" value="{{$oldData['glnum']}}">
					</td>
					
				
			</tr>
			<tr><td colspan="6"><input type="submit" value="提交修改" class="btn btn-success btn-block"/></td>
				
			</tr>
			</form>
		</table>
		
	</body>
</html>
